<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAppStartTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('app_start', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 128)->comment('标题');
            $table->string('picurl',128)->comment('图片url');
            $table->string('type', 30)->comment('类型,h5，商家，空白页');
            $table->string('content', 512)->comment('内容');
            $table->integer('isglobal')->default(0)->comment('是否全国使用');
            $table->integer('cityid')->default(1)->comment('城市id');
            $table->date('starttime')->comment('开始时间');
            $table->date('lasttime')->comment('截止时间');
            $table->integer('status')->default(1)->comment('状态');
            $table->integer('adminid')->default(1)->comment('操作员');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('app_start');
    }
}
